package com.fa.wisdom.ui;

import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.StaggeredGridLayoutManager;

import com.fa.wisdom.R;
import com.fa.wisdom.base.BaseActivity;
import com.fa.wisdom.utils.GridItemDecoration;

/**
 * create by steven
 * 2021-07-19
 * <p>
 * des:
 */
public class YongYaoJLActivity extends BaseActivity {
    private RecyclerView recyclerView;
    @Override
    public void setListen() {

    }

    @Override
    public void setTitleBarColor() {

    }

    @Override
    public int intiLayout() {
        return R.layout.activity_yyjl;
    }

    @Override
    public void initView() {
        recyclerView=findViewById(R.id.recycle);
        recyclerView.setHasFixedSize(true);
        recyclerView.setNestedScrollingEnabled(false);
        StaggeredGridLayoutManager staggeredGridLayoutManager = new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL);
        recyclerView.setLayoutManager(staggeredGridLayoutManager);
        GridItemDecoration  divider = new GridItemDecoration.Builder(this)
                    .setHorizontalSpan(R.dimen.common_vew_column_padding)
                    .setVerticalSpan(R.dimen.common_vew_raw_padding)
                    .setColorResource(R.color.transparent)
                    .setShowLastLine(false)
                    .build();
        recyclerView.addItemDecoration(divider);
//        recyclerView.setAdapter();
    }

    @Override
    public void initData() {

    }
}
